package com.cfh.util;

import flexjson.JSONSerializer;

public class JsonTools {
	private static JSONSerializer serializer;
	static {
		serializer = new JSONSerializer();
	}

	public static String deepSerialize(Object ojb) {
		try {
			return serializer.deepSerialize(ojb);
		} catch (Exception e) {
			e.printStackTrace();
			return "{}";
		}
		
	}

}
